{{#extends @html/widget/hp/widget.html}}

{{:widget_class}}wg-tags{{/:widget_class}}

{{:widget_title}}
	<h3 class="title-">{{?widget.title}}{{widget.title}}{{?:}}Темы{{/?}}</h3>
{{/:widget_title}}

{{:widget_body}}
	{{!connect "theme/widget/tags.css"}}
	{{?widget.content.items || founded_tags}}
	<ul class="list-">
		{{?founded_tags}}
			{{!for founded_tags do=@:tag}}
		{{?:}}
			{{!for widget.content.items do=@:tag}}
		{{/?}}
		{{:tag *is_current}}
		<li class="item- weight-{{*weight}}-">{{*name}}{{?!For.last}},{{/?}} </li>
		{{/:tag}}
		{{:tag}}
		<li class="item- weight-{{*weight}}-"><a href="{{/}}{{community.url}}/showfeed?tag={{*name|escape type='url'}}{{@:wg_tdi_url}}">{{*name}}</a>{{?!For.last}},{{/?}} </li>
		{{/:tag}}
	</ul>
	{{?:}}
	<div class="typography"><p>Тем пока нет.</p></div>
	{{/?}}
{{/:widget_body}}

{{:wg_tdi_url}}
	{{?tdi_oid}}&tdi[{{tdi_oid}}]=on{{/?}}
{{/:wg_tdi_url}}
